1 REM <CTRL-M><CTRL-M><CTRL-M>=====================<CTRL-M><CTRL-M> WIZ FIX<CTRL-M> FROM<CTRL-M> (IN)CIDER MAG<CTRL-M> AUGUST 1983<CTRL-M> PP 61 - 72<CTRL-M><CTRL-M> INCODED BY:<CTRL-M> CLKAY<CTRL-M>====================<CTRL-M><CTRL-M><CTRL-M><CTRL-M><CTRL-M><CTRL-M><CTRL-M><CTRL-M><CTRL-M><CTRL-M>
2 REM <CTRL-M><CTRL-M><CTRL-M> WIZARDRY CHARACTER UTILITY<CTRL-M><CTRL-M><CTRL-M><CTRL-M><CTRL-M>
3 REM <CTRL-M><CTRL-M><CTRL-M>********************<CTRL-M><CTRL-M> WRITTEN BY:<CTRL-M><CTRL-M> KERRY J LANZ<CTRL-M><CTRL-M>********************<CTRL-M><CTRL-M><CTRL-M><CTRL-M><CTRL-M>
101 HOME
105 HIMEM: 38000
110 DIM N$(20),TRK(20),SEC(20),T$(140)
115 GOSUB 800
120 GOSUB 700: GOTO 400
200 REM <CTRL-M><CTRL-M>IDENTIFY CHARACTER<CTRL-M><CTRL-M><CTRL-M>
205 P$ = "": FOR MAP = BASE +17 TO BASE +31:P$ = P$ + CHR$( PEEK(MAP)): NEXT
422 VTAB 14: HTAB 1: PRINT " ->START PRINTER AND PRESS ANY KEY<-";: GET A$: PRINT CHR$(4): PRINT CHR$(4)"PR#1"
424 PRINT : FOR K = 1 TO 40: PRINT "*";: NEXT : PRINT : GOSUB 300: PRINT : GOSUB 696: GOSUB 348: PRINT : PRINT CHR$(4): PRINT CHR$(4)"PR#0"
426 GOSUB 300: GOTO 410
430 IF B = 13 THEN POKE 47092,2: CALL 768: POKE 47092,1: GOTO 120
435 IF B <65 OR B >76 THEN GOTO 410
440 B = B -64
445 ON B GOSUB 500,505,510,515,520,525,530,535,540,545,550,555: GOSUB 200: GOSUB 300: GOTO 410
500 POKE BASE +40,0: POKE BASE +41,0: RETURN
505 POKE BASE +32,0: FOR K = 200 TO 205: POKE BASE +K,0: NEXT : RETURN
510 FOR MAP = BASE +64 TO BASE +120 STEP 8: POKE MAP,1: NEXT : FOR K = 8 TO 1 STEP -1: IF PEEK(BASE +58 +(8 *K)) = 0 THEN NEXT :K = 0
511 POKE BASE +58,K: RETURN
515 FOR MAP = BASE +62 TO BASE +118 STEP 8: POKE MAP,0: POKE MAP -2,0: NEXT : RETURN
520 K = PEEK(BASE +132): IF K <254 THEN POKE BASE +130,K +1: POKE BASE +132,K +1: RETURN
521 RETURN
525 K = PEEK(BASE +136): IF K <245 THEN POKE BASE +134,K +10: POKE BASE +136,K +10
526 RETURN
530 POKE BASE +138,255: POKE BASE +139,255: POKE BASE +140,255: FOR K = 1 TO 7:MAP = BASE +144 +(K *2): POKE MAP,9: NEXT : RETURN
535 POKE BASE +140,255: POKE BASE +141,255: POKE BASE +142,255: POKE BASE +143,255: POKE BASE +144,7: FOR K = 1 TO 7:MAP = BASE +158 +(K *2): POKE MAP,9: NEXT : RETURN
540 IF PEEK(BASE +126) <254 THEN POKE BASE +126, PEEK(BASE +126) +1
541 RETURN
545 IF PEEK(BASE +54) <254 THEN POKE BASE +54, PEEK(BASE +54) +1
546 RETURN
550 POKE BASE +38,170: POKE BASE +39,3: RETURN
555 POKE BASE +44,82: POKE BASE +45,74: POKE BASE +46,82: POKE BASE +47,74: RETURN
600 REM <CTRL-M><CTRL-M>RECREATE CHARACTER<CTRL-M><CTRL-M><CTRL-M>
602 TEXT : HOME
605 PRINT N$(A),O$(O);" ";R$(R);" ";C$(C): PRINT : FOR K = 1 TO 40: PRINT "*";: NEXT : PRINT
825 PRINT : PRINT " MAKE A BACK-UP DISK OF YOUR CHARACTERSUSING THE WIZARDRY UTILITIES. WIZ FIX WILL HELP YOU DO ALL MANNER OF MAGICS. USE ONLY THE BACK UP!!!!!!!!!!": PRINT TAB( 10)"INSERT BACK-UP DISK. "
830 SPEED= 255: GOSUB 900: PRINT TAB( 7)"PRESS <RETURN> TO BEGIN ";: POKE -16368,0: GET A$: IF A$ = CHR$(13) THEN GOTO 850
840 HOME : VTAB 11: HTAB 16: PRINT "FAREWELL": PRINT : PRINT : PRINT : PRINT : PRINT : END
850 FOR K = 1 TO 20: POKE 47084,TRK(K): POKE 47085,SEC(K): CALL 768:N$(K) = "": FOR L = 1 TO 15:N$(K) = N$(K) + CHR$( PEEK(BASE +L)): NEXT : NEXT : RETURN
900 REM <CTRL-M><CTRL-M>INITIALIZATION<CTRL-M><CTRL-M><CTRL-M>
910 FOR K = 1 TO 5: READ R$(K): NEXT : FOR K = 0 TO 7: READ C$(K): NEXT : FOR K = 0 TO 7: READ S$(K): NEXT : FOR K = 1 TO 3: READ O$(K): NEXT : FOR K = 1 TO 20: READ TRK(K),SEC(K): NEXT
911 T$(0) = " ": FOR K = 1 TO 136: READ T$(K): NEXT
915 RETURN
930 DATA HUMAN,ELF,DWARF,GNOME,HOBBIT
931 DATA FIGHTER,MAGE,PRIEST,THIEF,BISHOP,SAMURAI,LORD,NINJA
932 DATA OK,AFRAID,ASLEEP,PARALYZED,STONED,DEAD,ASHES,LOST FOREVER
933 DATA GOOD,NEUTRAL,EVIL
934 DATA 0,0,0,13,0,11,0,9,0,7,0,5,0,3,0,1,1,0,1,13,1,11,1,9,1,7,1,5,1,3,1,1,2,0,2,13,2,11,2,9
935 DATA LONG SWORD,SHORT SWORD,ANOINTED MACE,ANOINTED FLAIL,STAFF,DAGGER,SMALL SHIELD,L. SHIELD,ROBES,LEATHER ARMOR
936 DATA CHAIN MAIL,BREAST PLATE,PLATE MAIL,HELM,DIOS POTION,LATUMOFIS POTION,LONG SWORD +1,SHOR SWORD +1,MACE+1,STAFF OF MOGREF
937 DATA KANTINO SCROLL,LEATHER+1,CHAIN MAIL +1,PLATE MAIL +1,SHIELD +1,BREAST PLATE +1,BADIOS SCROLL,HALITO SCROLL,LONG SWORD -1,SHORT SWORD -1
940 DATA SHIELD +2,HELM +2(EVIL),DIAL POTION,PORFIC RING,WERE SLAYER,MAGE MASHER,MACE PRO POISON,MONTINO STAFF,BLADE CUSINART',MANIFO AMULET
941 DATA ROD OF FLAME,EVIL CHAIN +2,NEUT P-MAIL +2,EVIL SHIELD +3,MAKANITO AMULET,MALOR DIADEM,BADIAL SCROLL,SHORT SWORD -1,DAGGER +2,MACE -2
942 DATA STAFF -2,DAGGER OF SPEED,CURSED ROBE,LEATHER -2,CHAIN -2,BREAST PLATE -2,SHIELD -2,CURSED HELMET,BREAST PLATE +2,SILVER GLOVES
943 DATA EVIL SWORD +3,EVIL SSWORD +3,THIEVES DAGGER,BREAST PLATE +3,LORDS GARB,MURASAMA BLADE,SHURIKEN,CHAIN PRO FIRE,EVIL PLATE +3,SHIELD +3
944 DATA RING OF HEALING,RING PRO UNDEAD,DEADLY RING,ROD OF RISING,AMULET OF COVER,ROBE +3,WINTER MITTENS,NCKLCE PRO MAGIC,STAFF OF LIGHT,LONG SWORD +5
945 DATA SWINGING SWORD,FRIEST PUNCHER,PRIEST'S MACE,SWINGING SSWORD,RING PRO FIRE,CURSED PLATE +1,PLATE MAIL +5,STAFF OF CURING,RING OF REGEN,METAMORPH RING
946 DATA STONE STONE,DREAMER'S STONE,DAMIEN STONE,GREAT MAGE WAND,COIN OF POWER,STONE OF YOUTH,MIND STONE,STONE OF PIETY,BLARNEY STONE,AMULET OF SKILL
947 DATA AMULET OF SKILL,GREAT MAGE WAND,COIN OF POWER,STAFF OF GNILDA,HRATHNIR,KOD HELMET,KOD SHIELD,KOD GAUNTLETS,KOD ARMOR
948 DATA WERDNA'S AMULET,BEAR STATUE,FROG STATUE,BRONZE KEY,SILVER KEY,GOLD KEY,BLUE RIBBON
1000 REM <CTRL-M><CTRL-M>A POSITION OF CHAR ON ROSTER<CTRL-M>A$ KEYBOARD COMMAND<CTRL-M>AC ARMOR CLASS<CTRL-M>AG AGILITY<CTRL-M>B$,B KEYBOARD INPUT<CTRL-M>BASE STARTING LOC IN RAM OF CHARACTER<CTRL-M><CTRL-M>
1001 REM <CTRL-M><CTRL-M>C$(C) CLASS FROM CLASS LABEL ARRAY<CTRL-M>C1-C4 CHARACTERISTIC BYTES<CTRL-M>CASH AMOUNT OF GOLD<CTRL-M>E1-E4 EXPERIENCE BYTES<CTRL-M>EP EXPERIENCE POINTS<CTRL-M>G1-G4 GOLD BYTES<CTRL-M><CTRL-M>
1002 REM <CTRL-M><CTRL-M>IQ IQ OF CHARACTEER<CTRL-M>K MISCELLANEOUS COUNTER<CTRL-M>L$ LOCATION RELATIVE TO CASTLE<CTRL-M>LE LEVEL OF CHARACTER<CTRL-M>LU LUCK OF CHARACTER<CTRL-M>M MAGE SPELLS, NUMBER PER LEVEL<CTRL-M><CTRL-M>
1003 REM <CTRL-M><CTRL-M>MAP MISCELLANEOUS<CTRL-M>N$ ARRAY OF 20 CHARACTER NAMES<CTRL-M>O$(O) ORIENTATION, FROM ARRAY OF LABELS<CTRL-M>OL YEARS OLD<CTRL-M>P$ PASSWORD<CTRL-M>P PRIEST SPELLS, NUMBER PER LEVEL<CTRL-M><CTRL-M>
1004 REM <CTRL-M><CTRL-M>PH PRESENT HIT POINT<CTRL-M>PI PIETY OF CHARACTER<CTRL-M>R$(R) RACE, FROM ARRAY OF LABELS<CTRL-M>S$(S) STATUS, FROM ARRAY OF LABELS<CTRL-M>SEC SECTORS ON DISK<CTRL-M>ST STRENGTH OF CHARACTER<CTRL-M><CTRL-M>
1005 REM <CTRL-M><CTRL-M>T$ ARRAY OF OBJECTS<CTRL-M>T VALUES IN THE 8 OBJECT BYTES<CTRL-M>TLO LOW PARAMETER OF OBJECT LIST<CTRL-M>THI HIGH PARAMETERS OF OBJECT LIST<CTRL-M>TT$ TITLES OF OBJECT LIST SECTIONS<CTRL-M><CTRL-M>
1006 REM <CTRL-M><CTRL-M>TRK TRACKS ON DISK<CTRL-M>VI VITALITY OF CHARACTER<CTRL-M>Y1-Y2 AGE BYTES IN WEEKS
1010 REM <CTRL-M><CTRL-M>==========================<CTRL-M><CTRL-M>THE SALE OF THIS PROGRAM IS<CTRL-M>PAYMENT FOR ENCODING TIME ONLY<CTRL-M>AND IN NO WAY IMPLIES THAT CLKAY<CTRL-M>WAS THE AUTHOR OR CREATER OF<CTRL-M> WIZ FIX<CTRL-M><CTRL-M>==========================<CTRL-M>
1011 REM <CTRL-M><CTRL-M>=========================<CTRL-M><CTRL-M>PROGRAM AUTHORED AND WRITTEN BY<CTRL-M> KERRY J LANZ<CTRL-M><CTRL-M>=========================